Hello, I have a question about modules opened not visible. For example if i have opened between 5 and 10 modules not visible (with read(..., false) or edit(..., false )) and after the procedure these modules remain open in read mode, are there any known performance or safety issues? I already figured out that if these modules remain opened. And another script which is working on all opened modules could lead to a potential data loss, since this script is maybe not developed with this case in mind, but are there any other dangers I am not thinking of?
Best whishes, Patrick Patrick_1 - Tue Oct 30 11:43:09 EDT 2018 |
Re: Safety/Performance issues with not visible modules Performance: hm, all open modules consume memory, Whether you really have a problem depends on the size of the modules, but I doubt it, especially with a 64bit client. Safety: I hope that no program is able to read into the memory of the DOORS client, the memory should be protected. Concerning other scripts: usually there should not be a problem. I don't know how the script that you described could lead to data loss if it processes more modules than the script intended to. Perhaps you can rewrite your script that on the one hand uses the "for Module in database" loop (all open modules) and checks whether the module is opened visibly (bool isVisible(Module)). No other ideas about this, sorry.. |
Re: Safety/Performance issues with not visible modules Unless you have a reason why you do not close the modules, you should probably think about closing those modules? Anyway IF you have a reason not to close the modules (because you have multiple scripts operating on them and want to save the time to close and open them again), then you might want to think about providing the user a possibility to close them, when he is finished. Apart from that, if you don't care about closing them I cannot see any negative impact, except memory drainage. Regards, Mathias |
Re: Safety/Performance issues with not visible modules thank you for your replies. I expected something in the direction you described. Honestly I hoped your answers would help me with a problem that goes in the same direction. I will open another thread for that question. |